CXXFLAGS=-I.
LDFLAGS=-L/usr/lib

all: Server Client

Server: LDLIBS=-lIce -lIceUtil
Server: Server.o Person.o PersonI.o
Server.o: Server.cpp Person.h PersonI.h

Client: LDLIBS=-lIce -lIceUtil
Client: Client.o Person.o 
Client.o: Client.cpp Person.h

%.h %.cpp: %.ice
	slice2cpp -I/usr/share/slice $<

clean:
	rm -f *.o Server Client Person.h Person.cpp *~
